package form

type FormCheckAuth struct {
	AuthToken string `form:"authToken" json:"authToken" binding:"required"`
}

type FormLogin struct {
	UserName string `form:"userName" json:"userName" binding:"required"`
	Password string `form:"passWord" json:"passWord" binding:"required"`
}

type FormLogout struct {
	AuthToken string `form:"authToken" json:"authToken" binding:"required"`
}

type FormCreateGroup struct {
	AuthToken string `form:"autoToken" json:"authToken" binding:"required"`
	Name      string `form:"name" json:"name" binding:"required"`
	Members   []uint `form:"members" json:"members" binding:"required"`
}

type FormGroupInfo struct {
	AuthToken   string `form:"autoToken" json:"authToken" binding:"required"`
	GroupIdList []uint `form:"groupIdList" json:"groupIdList" binding:"required"`
}

type FormGroupChange struct {
	AuthToken  string `form:"autoToken" json:"authToken" binding:"required"`
	GroupId    uint   `form:"groupId" json:"groupId" binding:"required"`
	ChangeType int    `form:"changeType" json:"changeType" binding:"required"`
	MemberIds  []uint `form:"memberIds" json:"memberIds" binding:"required"`
}

type FormMessageInfo struct {
	UserName string `form:"userName" json:"userName" binding:"required"`
	MsgData  string `form:"msgData" json:"msgData" binding:"required"`
}
